<!DOCTYPE html>
<html>

    <head>
		<%@ page language="java" pageEncoding="UTF-8"%>
		 <%@ taglib prefix="s" uri="/struts-tags" %>
		 <%@ taglib prefix="sec"
				uri="http://www.springframework.org/security/tags"%>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>枝江市农村供水工程信息化平台</title>

        <!-- CSS -->
        <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:400,100,300,500">
        <link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
        <link rel="stylesheet" href="assets/font-awesome/css/font-awesome.min.css">
		<link rel="stylesheet" href="assets/css/form-elements.css">
        <link rel="stylesheet" href="assets/css/style.css">


		<script type="text/javascript"	src="jquery.min.js"></script>
		<script src="assets/js/init.js"></script>
		
		<!-- 保证iframe里面能够跳回登录界面 -->
	<script language="JavaScript"> 
	if (window != top) 
	top.location.href = location.href;
</script>
		
    </head>

    <body>
		<div id="top">
			<div id="loginForm">
			<%-- <form role="form" action="${pageContext.request.contextPath}/spring_security_check"	method="post" class="login-form">
				<div class="form-group">
				
					<<!-- label class="sr-only" for="form-username">用户名</label> 用户名:<input
						type="text" name="username" placeholder="Username..."
						class="form-username form-control" id="username"> -->
						用户名:<input	type="text" name="username" placeholder="Username..."
						class="form-username" id="username">
						
				</div>
				<div class="form-group">
					<label class="sr-only" for="form-password">密码</label> <input
						type="password" name="password" placeholder="Password..."
						class="form-password form-control" id="password">
				</div>
				<div class="checkbox">
					<label> <input type="checkbox" value="remember-me">
						请记住我 </label>
				</div>
				<button type="submit" class="btn">登录</button>

			</form> --%>
			<form class="form-signin" id="formSignin"
						action="${pageContext.request.contextPath}/spring_security_check"
						method="post" style=" position: relative;">
						<label for="inputEmail" class="sr-only">用户名：</label> <input
							type="text" id="inputEmail" name="username" class="form-control"
							placeholder="username" required autofocus> <label
							for="inputPassword" class="sr-only">密码：</label> <input
							type="password" id="inputPassword" name="password"
							class="form-control" placeholder="Password" required>
						<div class="checkbox" id="remember">
							<label> <input type="checkbox" value="remember-me">
								请记住我 </label>
						</div>
						<div class="btn-group btn-group-justified" role="group" id="buttonGroup">
												<div class="btn-group" role="group" style="padding-right:25px;">
													<button id="submit" type="submit" class="btn btn-default  btn-primary" style="border-radius:6px;background-color:#ffad01">确定</button>
												</div>
												<div class="btn-group" role="group" style="padding-left:25px;">
													<button id="reset" type="reset" class="btn btn-default  btn-primary" style="border-radius:6px;background-color:#ffad01">重置</button>
												</div>
						</div>
						<c:if test="${not empty error}">
							<h3>
								<font color="red">${error}</font>
							</h3>
						</c:if>
						<c:if test="${not empty message}">
							<h3>
								<font color="green">${message}</font>
							</h3>
						</c:if>
					</form>

		</div>
			
		</div>
        <!-- Top content -->
     <%--    <div class="top-content">
        	
            <div class="inner-bg">
                <div class="container">
                   <!--  <div class="row">
                        <div class="col-sm-8 col-sm-offset-2 text">
                            <h1><strong>枝江市农村供水工程信息化平台</strong>
                            <div class="description">
                            	<p>
	                            	 登录界面
                            	</p>
                            </div>
                        </div>
                    </div> -->
                    <div class="row">
                        <div class="col-sm-6 col-sm-offset-3 form-box">
                        	<!-- <div class="form-top">
                        		<div class="form-top-left">
                        			<h3>登录到我们的网站</h3>
                            		<p>请输入您的用户名和密码:</p>
                        		</div>
                        		<div class="form-top-right">
                        			<i class="fa fa-key"></i>
                        		</div>
                            </div> -->
                            <div class="form-bottom">
			                    <form role="form" action="${pageContext.request.contextPath}/spring_security_check" method="post" class="login-form">
			                    	<div class="form-group">
			                    		<label class="sr-only" for="form-username">Username</label>
			                        	<input type="text" name="username" placeholder="Username..." class="form-username form-control" id="username">
			                        </div>
			                        <div class="form-group">
			                        	<label class="sr-only" for="form-password">Password</label>
			                        	<input type="password" name="password" placeholder="Password..." class="form-password form-control" id="password">
			                        </div>
								<div class="checkbox">
									<label> <input type="checkbox" value="remember-me">
										请记住我 </label>
								</div>
								<button type="submit" class="btn">登录</button>
			                        
			                    </form>
		                    </div>
                        </div>
                    </div>
                </div>
            </div>
            
        </div>
 --%>

        <!-- Javascript -->
        <script src="assets/js/jquery-1.11.1.min.js"></script>
        <script src="assets/bootstrap/js/bootstrap.min.js"></script>
        <script src="assets/js/jquery.backstretch.min.js"></script>
        <script src="assets/js/scripts.js"></script>
        
        <!--[if lt IE 10]>
            <script src="assets/js/placeholder.js"></script>
        <![endif]-->

    </body>

</html>
